package lt.vu.mif.os.processors;

import lt.vu.mif.os.VirtualMachine;
/**
*  
* @author Antanas Rudaitis
* @author Laurynas Paradauskas
* @author Algirdas Šaltupis
* 
*/
public class VirtualMachineRegisters {

    private int sp;
    private int pc;
    private VirtualMachine vm;
    
    //konstruktorius
    public VirtualMachineRegisters(VirtualMachine vm, int pc){
        this.sp = 0;
        this.pc = pc;
        this.vm = vm;
    }

    //nunulintojas
    public void flush(){
        this.sp = 0;
        this.pc = 0;
    }

    //get'eriai
    public int getSp(){
        return this.sp;
    }
    public int getPc(){
        return this.pc;
    }

    //set'eriai
    public void setSp(int sp){
        this.sp = sp;
        //vm.updateGUIReg();
    }
    public void setPc(int pc){
        this.pc = pc;
        //vm.updateGUIReg();
    }
}
